Scenario #4306: Settle Members Debt With Coop Assets Via Clearing

Given Properties

name value
memberNumber M-3101000
reference cancel 2024-01-15
valueToClear 128
comment clearing according to members debt
transactionDate 2024-02-15

Find membershipUuid

GET /api/hs/office/memberships/M-3101000
=> status: 200 OK 
{
  "uuid" : "77ff14b6-e2fa-4312-9929-c98694b5463e", // Membership: M-3101000 - Test AG
  "partner" : {
    "uuid" : "72eb4871-122a-42d8-b9a7-e45b7faf9fef", // Partner: P-31010 - Test AG
    "partnerNumber" : "P-31010",
    "partnerRel" : {
      "uuid" : "a4914399-27dc-4094-bf76-d6230d4f8373", // partnerRelationUuid
      "anchor" : {
        "uuid" : "c6575205-1480-4b70-a30b-d0c5a1d7cc99", // Person: Hostsharing eG
        "personType" : "LEGAL_PERSON",
        "tradeName" : "Hostsharing eG",
        "salutation" : null,
        "title" : null,
        "givenName" : null,
        "familyName" : null
      },
      "holder" : {
        "uuid" : "f8f6ad7e-53d2-4cf0-9cb9-30ca2767c599", // Person: Test AG
        "personType" : "LEGAL_PERSON",
        "tradeName" : "Test AG",
        "salutation" : null,
        "title" : null,
        "givenName" : null,
        "familyName" : null
      },
      "type" : "PARTNER",
      "mark" : null,
      "contact" : {
        "uuid" : "22c8432b-6fc1-44b4-a977-e1d00327b323", // Contact: Test AG - China
        "caption" : "Test AG - China",
        "postalAddress" : {
          "city" : "Dongguan City",
          "firm" : "Test AG",
          "name" : "Fi Zhong-Kha",
          "street" : "No.2 Commercial Second Street",
          "country" : "China",
          "building" : "Thi Chi Koh Building",
          "district" : "Niushan Wei Wu",
          "province" : "Guangdong Province"
        },
        "emailAddresses" : {
          "main" : "norden@test-ag.example.org"
        },
        "phoneNumbers" : {
          "phone" : "++15 999 654321"
        }
      }
    },
    "details" : {
      "uuid" : "ee1fbee4-f675-42f6-8cb7-66aa0b15e1b8",
      "registrationOffice" : "Registergericht Hamburg",
      "registrationNumber" : "1234567",
      "birthName" : null,
      "birthPlace" : null,
      "birthday" : null,
      "dateOfDeath" : null
    }
  },
  "mainDebitor" : null,
  "memberNumber" : "M-3101000",
  "memberNumberSuffix" : "00",
  "validFrom" : "2020-10-15",
  "validTo" : "2023-12-31",
  "status" : "CANCELLED",
  "membershipFeeBillable" : true
}

Create the Coop-Assets-CLEARING Transaction

POST /api/hs/office/coopassetstransactions
{
  "membership.uuid" : "77ff14b6-e2fa-4312-9929-c98694b5463e", // Membership: M-3101000 - Test AG
  "transactionType" : "CLEARING",
  "reference" : "cancel 2024-01-15",
  "assetValue" : "-128",
  "comment" : "clearing according to members debt",
  "valueDate" : "2024-02-15"
}
=> status: 201 CREATED b7f9086b-3669-4e73-a792-c416fe88c730

Verify Coop-Assets CLEARING-Transaction

GET /api/hs/office/coopassetstransactions/b7f9086b-3669-4e73-a792-c416fe88c730
=> status: 200 OK 
{
  "uuid" : "b7f9086b-3669-4e73-a792-c416fe88c730",
  "membership.uuid" : "77ff14b6-e2fa-4312-9929-c98694b5463e", // Membership: M-3101000 - Test AG
  "membership.memberNumber" : "M-3101000",
  "transactionType" : "CLEARING",
  "assetValue" : -128,
  "valueDate" : "2024-02-15",
  "reference" : "cancel 2024-01-15",
  "comment" : "clearing according to members debt",
  "adoptionAssetTx" : null,
  "transferAssetTx" : null,
  "revertedAssetTx" : null,
  "reversalAssetTx" : null
}

generated on 03-10-2025 12:08:12 for branch master